﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application1
{
    class Mus
    {
        /// <summary>
        /// Возведение в степень
        /// </summary>
        /// <param name="input">число</param>
        /// <param name="pow">степень</param>
        /// <returns>результат</returns>
        public double Power (double input, double pow)
        {
            var result = input;
            for (var i = 0; i < pow-1; i++)
            {
                result = input*result;

            }


            return result;
        }
        
         
    }
}
